// ActionScript file
package 
{
	import flash.utils.getQualifiedClassName;
	import flash.utils.getTimer;
	/**
	 * 封装trace
	 * _obj 必须传 this便于排错（无法实例化的类 传入类即可）
	 * arg 传入trace的值
	 * 
	 * @author iceman
	 */
	public function ftrace(_obj:Object,...arg):void
	{
		var t_objStr:String;
		if(_obj is Class)
		{
			t_objStr = _obj.toString();
			trace(fgetTime()+" runTime:"+getTimer()+" "+t_objStr,arg);
		}
		else
		{
			t_objStr = getQualifiedClassName(_obj);
			trace(fgetTime()+" runTime:"+getTimer()+"["+t_objStr+"]",arg);
		}
		
	}
}